<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class Lyrics extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        if (!Schema::hasTable('lyrics')) {
            Schema::create('lyrics', function (Blueprint $table) {
                $table->increments('id');
                $table->string('title');
                $table->string('slug');
                $table->text('embed')->nullable();
                $table->text('content');
                $table->integer('tone_id')->nullable();
                $table->bigInteger('favourites',false,true)->default(0);
                $table->bigInteger('views',false,true)->default(0);
                $table->bigInteger('thanks',false,true)->default(0);
                $table->integer('user_id');
                $table->integer('category_id')->nullable();
                $table->tinyInteger('is_hot')->default(0);
                $table->string('status', 10)->default('submitted');
                $table->timestamps();
                $table->softDeletes();
            });
        }
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }

}
